package matlap.client.services.news;

import java.util.List;

import matlap.shared.New;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface NewsServiceAsync {

	void getNews(AsyncCallback<List<New>> callback);

	void getNewsByTitle(String title, AsyncCallback<New> callback);

	void insertNews(New n, AsyncCallback<Void> callback);

	void deleteNews(New n, AsyncCallback<Void> callback);

	void updateNews(New n, AsyncCallback<Void> callback);

}
